package com.ls.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author pengyu
 * @since 2019-12-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class CommServiceChannel extends Model<CommServiceChannel> {

    private static final long serialVersionUID = 1L;

    /**
     * 服务与渠道关联表主键id，自增
     */
    @TableId(value = "ser_chal_id", type = IdType.AUTO)
    private Long serChalId;

    /**
     * 下游服务主键ID
     */
    private Long serviceId;

    /**
     * 上游通道主键ID
     */
    private Long chanId;

    /**
     * 序号，表示使用短信通道的优先级，1为最优先
     */
    private Integer serialNo;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 创建人ID
     */
    private Long createUserId;

    /**
     * 更新时间，自动
     */
    private LocalDateTime updateTime;

    /**
     * 更新人ID
     */
    private Long updateUserId;


    @Override
    protected Serializable pkVal() {
        return this.serChalId;
    }

}
